package com.epam.rd.mycollections;

import java.util.Iterator;

interface MyMap<K, V> {

    interface Entry<K, V> {

        boolean equals(Object obj);

        K getKey();

        V getValue();

        int hashCode();

        V setValue(V value);

    }

    void clear();

    boolean containsKey(K key);

    boolean containsValue(V value);

    V get(K key);

    boolean isEmpty();

    V put(K key, V value);

    V remove(K key);

    int size();

    Iterator<Entry<K, V>> entryIterator();

}
